from ast import arg
import string
from unicodedata import name


name='小明'
string='我叫{}'
print(string.format(name))

age=27
string='我叫{},今年{}岁了'
print(string.format(name,age))

string='我叫{1},今年{0}岁了'
print(string.format(age,name))

string='我叫{arg_one},今年{arg_two}岁了'
print(string.format(arg_one=name,arg_two=age))

string=f'我叫{name},今年{age}岁'
print(string)

